<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>迁移原赛事下的旧比赛列表 <button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button></h2>
    </div>
    <div class="cf">

    </div>
    <div class="tab-content">
    <notempty name="races">
        <form action="" method="post" class="form">
            <div class="data-table table-striped" style="">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                        <th>比赛</th>
                        <th>比赛时间</th>
                        <th>队伍</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="races" id="r">
                        <tr>
                            <td><input class="ids" type="checkbox" name="ids[]" value="{$r.id}" /></td>
                            <td>{$r.title}</td>
                            <td>{$r.match_time|date="y-m-d",###}</td>
                            <td>{$r.competitor.0} vs {$r.competitor.1}</td>
                        </tr>
                    </volist>
                </tbody>
            </table>
            </div>
            <br><br>
            <div class="form-item form-group form-action">
                <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" onclick="do_submit();" type="submit" target-form="form">确定迁移</button>
            </div>
        </form>
    <else />
        <div class="form-item">
            <div class="controls">
                <font color="red"><strong>旧比赛已迁移完</strong></font>
            </div>
        </div>
        <br><br>
        <div class="form-item">
        </div>
    </notempty>
    </div>
</block>

<block name="script">
    <script type="text/javascript">

        //导航高亮
        highlight_subnav('{:U('RaceGroup/index')}');
        showTab();

    </script>
</block>
